wayland: don't pass in width and height to create_shm_pool
authorRay Strode <rstrode@redhat.com>
Wed, 20 Jan 2016 17:35:44 +0000 (12:35 -0500)
committerRay Strode <rstrode@redhat.com>
Wed, 20 Jan 2016 19:29:15 +0000 (14:29 -0500)
commit5150849a67f0c5d4d1649f33047cbb23500c88b0
treef0708ead4b6c5d6197caec1875614edca8dbe7cd
parent1e001eaa7874bc00cfc3a2c86e8e40b0fe18c4e5
wayland: don't pass in width and height to create_shm_pool

create_shm_pool doesn't need the width or height, it just needs
the total size.  By passing it in, we're requiring it to redo
stride calculation unnecessarily.

This commit drops the width and height parameters and makes the
function just take the total size directly.

https://bugzilla.gnome.org/show_bug.cgi?id=760897
gdk/wayland/gdkdisplay-wayland.c